package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 t_book_info
 * 
 * @author ruoyi
 * @date 2022-06-08
 */
public class TBookInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 书名 */
    @Excel(name = "书名")
    private String name;

    /** 版本 */
    @Excel(name = "版本")
    private String edition;

    /** 出版社 */
    @Excel(name = "出版社")
    private String publisher;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** ISBN */
    @Excel(name = "ISBN")
    private String isbnNum;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 出版时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出版时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 图书类型 */
    private Long bookType;

    public Long getBorrowUserId() {
        return borrowUserId;
    }

    public void setBorrowUserId(Long borrowUserId) {
        this.borrowUserId = borrowUserId;
    }

    /**
     * 借阅人id
     */
    private Long borrowUserId;

    public String getBookTypeName() {
        return bookTypeName;
    }

    public void setBookTypeName(String bookTypeName) {
        this.bookTypeName = bookTypeName;
    }

    /** 图书类型 */
    @Excel(name = "图书类型")
    private String bookTypeName;

    /** 摘要 */
    @Excel(name = "摘要")
    private String summary;

    /** 主编 */
    @Excel(name = "主编")
    private String chiefEditor;

    /** 页数 */
    @Excel(name = "页数")
    private String pageNum;

    /** 英文书名 */
    @Excel(name = "英文书名")
    private String englishName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEdition(String edition) 
    {
        this.edition = edition;
    }

    public String getEdition() 
    {
        return edition;
    }
    public void setPublisher(String publisher) 
    {
        this.publisher = publisher;
    }

    public String getPublisher() 
    {
        return publisher;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setIsbnNum(String isbnNum) 
    {
        this.isbnNum = isbnNum;
    }

    public String getIsbnNum() 
    {
        return isbnNum;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }
    public void setBookType(Long bookType)
    {
        this.bookType = bookType;
    }

    public Long getBookType()
    {
        return bookType;
    }
    public void setSummary(String summary) 
    {
        this.summary = summary;
    }

    public String getSummary() 
    {
        return summary;
    }
    public void setChiefEditor(String chiefEditor) 
    {
        this.chiefEditor = chiefEditor;
    }

    public String getChiefEditor() 
    {
        return chiefEditor;
    }
    public void setPageNum(String pageNum) 
    {
        this.pageNum = pageNum;
    }

    public String getPageNum() 
    {
        return pageNum;
    }
    public void setEnglishName(String englishName) 
    {
        this.englishName = englishName;
    }

    public String getEnglishName() 
    {
        return englishName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("edition", getEdition())
            .append("publisher", getPublisher())
            .append("author", getAuthor())
            .append("isbnNum", getIsbnNum())
            .append("price", getPrice())
            .append("publishTime", getPublishTime())
            .append("bookType", getBookType())
            .append("summary", getSummary())
            .append("chiefEditor", getChiefEditor())
            .append("pageNum", getPageNum())
            .append("englishName", getEnglishName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
